{% extends 'org_base.html' %}
{% load staticfiles %}

{% block title %}
  机构首页
{% endblock %}

{% block right_form %}
  <div class="right companycenter layout grouping">
    <div class="head">
      <h1>全部课程</h1>
      <a class="green fr more" href="{% url 'org:course' course_org.id %}">查看更多 > </a>
    </div>
    <div class="brief group_list">
      {% for courses in all_courses %}
        <div class="module1_5 box">
          <a href="course-detail.html"><img width="214" src="{{ MEDIA_URL }}{{ courses.image }}"/></a>
          <div class="des">
            <a href="course-detail.html"><h2>{{ courses.name }}</h2></a>
            <span class="fl">课时：<i class="key">{{ courses.learn_times }}</i></span>
            <span class="fr">参加人数：{{ courses.students }}</span>
          </div>
          <div class="bottom">
            <span class="fl">{{ courses.course_org }}</span>
            <span class="star fr  notlogin" data-favid="13" data-fav-type="4">{{ courses.fav_nums }}</span>
          </div>
        </div>
      {% endfor %}
    </div>
  </div>
  <div class="right companycenter layout">
    <div class="head">
      <h1>机构教师</h1>
      <a class="green fr more" href="{% url 'org:teacher' course_org.id %}">查看更多 > </a>
    </div>

    <div class="diarys">
      {% for teacher in all_teacher %}
        <div class="module5 share company-diary-box" style="padding:10px 0;">
        <div class="left">
          <img class="pic" src="{{ MEDIA_URL }}{{ teacher.image }}"/>
          <p>昵称：{{ teacher.name }}</p>
        </div>
        <div class="right">
          <div class="top">
            <div class="fl">
              <a href=""><h1>{{ teacher.work_position }}</h1></a>
              <span>工作年限{{ teacher.work_years }}</span>
            </div>
          </div>
          <div class="middle" style="border-bottom:0;">{{ teacher.points }}</div>
        </div>
      </div>
      {% endfor %}
    </div>
  </div>

  <div class="right companycenter layout">
    <div class="head">
      <h1>机构介绍</h1>
      <a class="green fr more" href="{% url 'org:desc' course_org.id %}">查看更多 > </a>
    </div>
    <div class="cont">{{ course_org.desc }}</div>
  </div>
{% endblock %}